package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * sku信息(SkuInfo)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_sku_info")
@Schema(name = "sku信息实体", description = "sku信息映射")
public class SkuInfo implements Serializable {
    private static final long serialVersionUID = -52810594860944739L;

    @TableId(value = "sku_id" , type = IdType.AUTO)
    @Schema(description = "skuId")
    private Long skuId;

    @TableField(value = "spu_id")
    @Schema(description = "spuId")
    private Long spuId;
    
    @TableField(value = "sku_name")
    @Schema(description = "sku名称")
    private String skuName;
    
    @TableField(value = "sku_desc")
    @Schema(description = "sku介绍描述")
    private String skuDesc;
    
    @TableField(value = "catalog_id")
    @Schema(description = "所属分类id")
    private Long catalogId;
    
    @TableField(value = "brand_id")
    @Schema(description = "品牌id")
    private Long brandId;
    
    @TableField(value = "sku_default_img")
    @Schema(description = "默认图片")
    private String skuDefaultImg;
    
    @TableField(value = "sku_title")
    @Schema(description = "标题")
    private String skuTitle;
    
    @TableField(value = "sku_subtitle")
    @Schema(description = "副标题")
    private String skuSubtitle;
    
    @TableField(value = "price")
    @Schema(description = "价格")
    private Double price;
    
    @TableField(value = "sale_count")
    @Schema(description = "销量")
    private Long saleCount;
    
}

